﻿#ifndef POSTCOMMAND_CMDPOLARCOORDINATEGRAPHADDTRACER_H
#define POSTCOMMAND_CMDPOLARCOORDINATEGRAPHADDTRACER_H

#include "CommandManager/CommandBase.h"

namespace PostCommand
{
    /// @brief 后处理保存图像命令
    class CmdPolarCoordinateGraphAddTracer : public CommandManager::CommandBase
    {
        Q_OBJECT

    public:
        CmdPolarCoordinateGraphAddTracer();
        ~CmdPolarCoordinateGraphAddTracer();

        bool execute() override;
        void undo() override;
        void redo() override;

        void setPolarCoordinateGraphAddTracer(int mainWindowId, QString name, double angle, int tracerStyle, int size, int penR, int penG, int penB, int penA,
            int brushR, int brushG, int brushB, int brushA, int interpolating, int curveInfoID, int tracerIndex);

    private:
        int m_mainWindowId;
        QString m_name;
        double m_angle;
        int m_tracerStyle;
        int m_size;
        int m_penR;
        int m_penG;
        int m_penB;
        int m_penA;
        int m_brushR;
        int m_brushG;
        int m_brushB;
        int m_brushA;
        int m_interpolating;
        int m_curveInfoID;
        int m_tracerIndex;
    };
} // namespace PostCommand

#endif
